<?php
namespace app\api\controller;

use think\View;

class Index
{
    /**
     * @var View
     */
    protected $view;

    /**
     * @brief Interface
     */
    function __construct()
    {
        $this->view = new View();
    }

    /**
     * @brief 加载首页
     * @return string
     */
    public function index()
    {
        return $this->view->fetch('index', [], ['__PUBLIC__'=>'/public']);
    }
}
